import { FormProps, FormSchema } from '/@/components/Form';
import type { DynamicProps } from '/#/utils';
type Props = Partial<DynamicProps<FormProps>>;
export const searchSchemas: FormSchema[] = [
  {
    field: 'device_name',
    component: 'Input',
    label: '设备名称',
    componentProps: {
      placeholder: '请输入设备名称',
    },
    colProps: {
      lg: 7,
      xl: 5,
    },
  },
  {
    field: 'keys',
    component: 'Input',
    label: '属性名称',
    componentProps: {
      placeholder: '多个用逗号分隔',
    },
    colProps: {
      lg: 7,
      xl: 5,
    },
  },

  {
    field: 'time',
    component: 'RangePicker',
    label: '日期时间',
    componentProps: () => {
      return {
        showTime: true,
      };
    },
    colProps: {
      lg: 12,
      xl: 6,
      xxl: 7,
    },
  },
];

export const fromConfig: Props = {
  labelWidth: 80,
  schemas: searchSchemas,
  showActionButtonGroup: false,
  actionColOptions: {
    span: 24,
  },
};
